package drds.global_transaction.api.rpc.rpc_client;

import java.util.concurrent.TimeoutException;

public interface ClientMessageSender
{

	void sendResponse(String serverAddress, long messageId, Object message);

	//

	Object sendMessageWithResponse(Object message) throws TimeoutException;

	Object sendMessageWithResponse(Object message, long timeout) throws TimeoutException;

	Object sendMessageWithResponse(String serverAddress, Object message, long timeout) throws TimeoutException;

}
